package com.xlb.model.vo.notice;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 小聋包
 * @date 2024/9/21
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "修改公告 VO")
public class UpdateNoticeReqVO {

    @NotNull(message = "公告 ID 不能为空")
    @ApiModelProperty(value = "公告 ID")
    private Long id;

    @NotBlank(message = "公告内容不能为空")
    @Length(min = 1, max = 460, message = "公告内容字数限制 1 ~ 460 之间")
    @ApiModelProperty(value = "公告内容")
    private String content;

}
